import http from "./http"
let code = localStorage.getItem("deptCode")

//住院患者信息
export const get_patientData = () => http({
    method: "get",
    url: "/business/patient/whiteboardPatientData"
})

//值班护士
export const get_workNurse = () => http({
    method: "get",
    url: "/business/scheduling/todayWorkNurses?deptCode=" + code
})

//备注信息
export const get_whiteboardMemo = () => http({
    method: "get",
    url: "/business/memo/whiteboardMemoCot?deptCode=" + code
})

//备注修改
export const modify_whiteboardMemo = (params) => http({
    method: "get",
    url: "/business/memo/ModifyContent?deptCode=" + code,
    params
})

//通知
export const get_whiteboardNotice = () => http({
    method: "get",
    url: "/business/inform/whiteboardContent?deptCode=" + code
})

//通知修改
export const modify_whiteboardNotice = (params) => http({
    method: "get",
    url: "/business/inform/ModifyContent?deptCode=" + code,
    params
})

//应急电话
export const get_whiteboardDeptPhone = () => http({
    method: "get",
    url: "/business/phone/getInfoByDept?deptCode=" + code
})

//应急电话修改
export const modify_whiteboardDeptPhone = (params) => http({
    method: "post",
    url: "/business/phone/addInfo?deptCode=" + code,
    params
})

//2d图病房信息列表
export const get_whiteboardWardInfo = () => http({
    method: "get",
    url: "/business/ward/whiteboardWardInfo?deptCode=" + code
})

//病房患者列表: 参数-> rmNumber(病房代码)
export const get_whiteboardWardPatientInfo = (params) => http({
    method: "get",
    url: "/business/ward/whiteboardWardPatientInfo?deptCode=" + code,
    params
})

//查房信息:当前科室当前病区当日所有患者的查房信息: 参数-> rmNumber(病房代码)
export const get_whiteboardPatrolWardInfo = (params) => http({
    method: "get",
    url: "/business/dailyPatrol/whiteboardPatrolWardInfo?deptCode=" + code,
    params
})